#ifndef MYSOCKET_H
#define MYSOCKET_H

#include <QObject>
#include<QTcpSocket>

class MySocket : public QObject
{
    Q_OBJECT
public:
    explicit MySocket(QObject *parent = nullptr);
    ~MySocket();
public slots:
    void connectSever(const QString &hostName, quint16 port);
    void sendFile(QString filepath11);

signals:
    void sendConnect();
    void sendFileProcess(int percent);
    void gameover();
private:
    QTcpSocket *socket;


};

#endif // MYSOCKET_H
